import { Controller, Get, Inject } from '@nestjs/common';
import { AppService } from './app.service';

@Controller('api')
export class AppController {
  constructor(
    private readonly appService: AppService,
    @Inject('configService') private readonly meng,
    @Inject('DBService') private readonly db,
  ) {}

  @Get('app')
  postMan() {
    return this.appService.getHello();
  }

  @Get('meng')
  getMeng() {
    return this.meng.postMan();
  }

  @Get('db')
  getDb() {
    return this.db.connect();
  }
}
